#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
typedef struct STlist
{
	int data;
	struct STlist* next;
}STL;
STL* chuanjian(int x)
{
	STL* s = (STL*)malloc(sizeof(STL));
	s->data = x;
	s->next = NULL;
	return s;
}

int main()
{
	STL* s1 = chuanjian(1);
	STL* s2 = chuanjian(2);
	STL* s3 = chuanjian(3);
	STL* s4 = chuanjian(4);
	STL* s5 = chuanjian(5);
	(s1->next) = s2;
	(s2->next) = s3;
	(s3->next) = s4;
	(s4->next) = s5;
	(s5->next) = NULL;
	STL* q = s1;
	STL* w = s1;
	while (w && w->next)
	{
		q = q->next;
		w = w->next->next;
	}
	printf("%d", q->data);
	return 0;
}